<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>p1_变换与过渡</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            background-color: red;
            margin: 100px auto 0;
            transition: 2s; /*增加过渡时间,否则一瞬间缩放太突兀！注意要加在元素上不是悬停上*/
        }
        div:hover {
            background-color: #0aa1ed;
            transform: scale(2); /*变换:缩放 n>1放大n倍 n=1大小不变 0<n<1缩小n倍 0缩小到看不见*/
            transform: scale(2) rotate(-90deg); /*旋转 单位deg 正数顺时针转*/
            border-radius: 50px;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>